﻿using ProductionManage.Models.DataModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;
using wangyaxin.Jiangzhenying.UnitInfos.Dto;
using wangyaxin.Wang.Dto;

namespace wangyaxin.Jiangzhenying.UnitInfos
{
    public interface IUnitInfoIService : IApplicationService
    {
        /// <summary>
        /// 获取单位信息
        /// </summary>
        /// <returns></returns>
        Task<string> GetUnidInfoList(string? unitCode, string? unitName);

        /// <summary>
        /// 新增单位信息
        /// </summary>
        /// <returns></returns>
        Task<UnitInfo> AddUnitInfo(UnitInfo unitInfo);

        /// <summary>
        /// 根据id获取单位信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<UnitInfo> GetUnitInfo(int id);

        /// <summary>
        /// 更新单位信息
        /// </summary>
        /// <param name="unitInfo"></param>
        /// <returns></returns>
        Task<int> UpdateUnitInfo(UpdateUnitInfoDto unitInfo);

        /// <summary>
        /// 删除单位信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<string> DeleteUnitInfo(int id);
    }
}
